﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T4Template.Dto
{
    public class UserDto
    {
        public int Id { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime LastLogin { get; set; }
        private List<ProjectDto> _projects;

        public UserDto()
        {
            _projects = new List<ProjectDto>();
        }

        public void AddProject(ProjectDto project)
        {
            _projects.Add(project);
        }

        public List<ProjectDto> GetProjects()
        {
            return _projects;
        }
    }
}
